/**
 * @Title: AppParamDao
 * @Package cn.com.yiqi.wsc.dao.appparam
 * @Description: TODO
 * Copyright: Copyright (c) 2016
 * Company: 成都壹柒互动科技有限公司
 * @author 会员系统组-胥钰淋
 * @date 2017/3/6 10:14
 * @version V1.0
 */
package cn.com.yiqi.wsc.dao.appparam;

import cn.com.artemis.framework.base.commons.persistence.CrudDao;
import cn.com.yiqi.wsc.dao.appparam.entity.AppParamEntity;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 *@ClassName: AppParamDao
 * @Description: TODO
 * @author 会员系统组-胥钰淋
 * @date 2017/3/6 10:14
 *
 */
@Repository
public interface
AppParamDao extends CrudDao<AppParamEntity> {

    List<AppParamEntity> selectList(AppParamEntity appParamEntity);

    /**
     * 更具code获得相应的参数List
     * @param appParamEntity
     * @return
     */
    List<AppParamEntity> getMarryParamList(AppParamEntity appParamEntity);

    /**
     * 更新除分销外的所有
     * @param appParamEntity
     * @return
     */
    Integer updateAppParam(AppParamEntity appParamEntity);

    /**
     * 更新分销
     * @param appParamEntity
     * @return
     */
    Integer updateDistributionAppParam(AppParamEntity appParamEntity);

    /**
     * 按code查询
     * */
    AppParamEntity getByCode(String code);

}
